package cn.iocoder.yudao.module.book.controller.admin.book.vo;

import lombok.*;

import java.time.LocalDate;

import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 图书分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BookPageReqVO extends PageParam {

    @Schema(description = "国际标准书号")
    private String isbn;

    @Schema(description = "书名")
    private String title;

    @Schema(description = "出版社ID", example = "28766")
    private Long publisherId;

    @Schema(description = "分类ID", example = "4444")
    private Long categoryId;

    @Schema(description = "图书描述", example = "你说的对")
    private String description;

    @Schema(description = "出版日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] publishDate;

    @Schema(description = "语言")
    private String language;

    @Schema(description = "页数")
    private Integer pages;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}